import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-02-26
 * Time:9:30
 */
public class Vote {
    int Poll=0;
    int AgreePoll=0;
    int DisagreePoll=0;
    public int getAgreePoll() {
        return AgreePoll;
    }
    public void setAgreePoll() {
        AgreePoll++;
    }
    public int getDisagreePoll() {
        return DisagreePoll;
    }
    public void setDisagreePoll() {
       DisagreePoll++;
    }
    public static void main(String[] args) {
        Vote fw=new Vote();
        Scanner sc=new Scanner(System.in);
        System.out.print("人数：");
        int c=sc.nextInt();
        String a;
        for (int i = 1; i <= c; i++) {
            System.out.print("第"+i+"名同学投票：");
            a=sc.next();
            if(a.equals("同意"))
            {
                fw.setAgreePoll();
            }
            else fw.setDisagreePoll();
        }
        System.out.println("同意票数："+fw.AgreePoll+"    不同意票数"+fw.DisagreePoll);
    }
}
